import com.hd.abc.dao.dao;
import com.hd.abc.sersions.ser;
import com.hd.abc.user.user;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;


@RunWith (SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath*:spring-localhosta.xml")
public class daa {
    @Autowired
    private ser a;

    @Test
    public void aa(){
        System.out.println (a.querylimitdata (1));
    }
    @Test
    public void ab(){
        System.out.println (a.deldataa (1));
    }
    @Test
    public void ac(){
        user u=new user (3,2,"a","a","a");
        int updatedata = a.updatedata (u);
        System.out.println (updatedata);
    }
@Test
    public void ad(){
    System.out.println (a.queryonedata (3));
}
        @Test
    public void m(){
            System.out.println (a.queryusername ());
        }
        @Test
        public void am(){
            System.out.println (a.querynamealla (2));
        }
        @Test
    public void ae(){
            user u=new user (3,2,"a","a","a");
            int adddataall = a.adddataall (u);
            System.out.println (adddataall);
        }

}
